import request from '@/utils/request'

// 站点列表
export function siteLists(params?: Record<string, any>) {
    return request.get({ url: '/site/list', params })
}

// 站点详情
export function siteDetail(params: Record<string, any>) {
    return request.get({ url: '/site/detail', params })
}

// 站点新增
export function siteAdd(params: Record<string, any>) {
    return request.post({ url: '/site/add', params })
}

// 站点编辑
export function siteEdit(params: Record<string, any>) {
    return request.post({ url: '/site/edit', params })
}

// 站点删除
export function siteDelete(params: Record<string, any>) {
    return request.post({ url: '/site/del', params })
}
//站点负责人
export function siteManager(params: Record<string, any>) {
    return request.get({ url: '/site/siteManager', params })
}
//pc负责人
export function userAdminSite(params: Record<string, any>) {
    return request.get({ url: '/site/userAdminSite', params })
}

export function area(params?: any) {
    return request.get({ url: '/device/area', params })
}

export function areaLevel(params?: any) {
    return request.get({ url: '/device/areaLevel', params })
}
//查询角色
export function roleAll(params?: any) {
    return request.get({ url: '/system/role/all', params })
}
